import mockRequests from "./mockRequests"

//Header的商品分类接口
export const reqCategory = () =>mockRequests({ url: "/category", method: "get" })
//home的信息接口
export const reqImgInfo = () =>mockRequests({ url: "/homeInfo", method: "get" })
//goodsshow商品展示接口
export const reqGoodsShow = () =>mockRequests({ url: "/goodsShow", method: "get", })
//商品详细页面数据
export const reqDetail = () =>mockRequests({ url: `/detail`, method: "get" })
//添加到购物车
export const postShopCart = (cartList) =>mockRequests({url:'/shopCart',method:'post',data:cartList})
//获取购物车数据
export const reqShopcartList = () => mockRequests({ url: "/shopCart", method: "get" })
//更新购物车勾选状态
export const postCheck = (data)=>mockRequests({url:'/updataCheck', method:'post',data})
//更新购物车所有勾选状态
export const postAllCheck = (data)=>mockRequests({url:'/updataAllChecked', method:'post',data})
//删除购物车商品
export const reqdelShopCart = (data)=>mockRequests({url:'/delShopCart', method:'post',data})
//获取地址
export const reqAddress = ()=>mockRequests({url:'/mock\/address', method:'get'})
//登录
export const postLogin = (data)=>mockRequests({url:'/login', method:'post',data})